/*
 * @Author: zjf
 * @Date: 2023-11-29 21:36:15
 * @LastEditors: zjf
 * @LastEditTime: 2023-11-30 19:11:17
 * @Description: 竣工验收阶段5 竣工验收备案17
 */
// 接口地址
export const api = window.$crud("completion/acceptance/record");
// 阶段code
export const stageCode = 5;
// 业务code
export const businessCode = 17

export const formColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
    disabled: true,
  },
  // {
  //   label: "项目编码",
  //   prop: "projectCode",
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   disabled: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "备案日期",
    prop: "recordTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "实际开工时间",
    prop: "realStartTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "实际完工时间",
    prop: "realCompleteTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "竣工验收时间",
    prop: "completionAcceptanceTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "是否办理延期开工",
    prop: "isDelay",
    minWidth: 140,
    dataType: 'radio',
    dataCode: 'trueOrFalse',
    isNotAutoWrap: true,
  },
];

export const tableColmuns = [
  // {
  //   label: '项目编码',
  //   prop: 'projectCode',
  //   minWidth: 140,
  //   dataType: 'input',
  //   isNotAutoWrap: true,
  // },
  {
    label: "项目名称",
    prop: "projectName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "备案日期",
    prop: "recordTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "实际开工时间",
    prop: "realStartTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "实际完工时间",
    prop: "realCompleteTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "竣工验收时间",
    prop: "completionAcceptanceTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "是否办理延期开工",
    prop: "isDelay",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "更新时间",
    prop: "modifyTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd HH:mm:ss",
  },
];

export const formData = {
  projectName: '',                  // 项目名称
  projectCode: '',                  // 项目编码
  // stageProgress: '',                // 阶段进展

  recordTime: '',                   // 备案日期
  realStartTime: '',                // 实际开工时间
  realCompleteTime: '',             // 实际完工时间
  completionAcceptanceTime: '',     // 竣工验收时间
  isDelay: ''                       // 是否办理延期开工
};

export const rules = {

};

let config = {
  api: api,
  stageCode: stageCode,
  businessCode: businessCode,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
};

export default config;